Skip to content

Conversation

@Justin99x
Copy link
Contributor

Save options was keeping values from a previously loaded character whenever a new character was started. The WillowSaveGameManager:EndLoadGame hook I was using never gets called on a new character, so setting the defaults gets skipped. This PR just changes the hook to WillowGame.WillowPlayerController:FinishSaveGameLoad, which gets called for both existing character loads and new character loads.

Also changed to a pre-hook because it appears that there are some cases that a character can be loaded into a map during this new function call, triggering our on_load callbacks. The callbacks would be useless if they occur before the save option values are loaded.

I tested on AnarchySaver and WeaponProficiencies, and both appear to work well with the change.

@apple1417
Copy link
Collaborator

I think you'll do best to cherry pick your first commit onto a new branch, the second one is unnecessary and the submodule changes are what's breaking (most of) the builds.

Please also bump the save options version, and update the changelog (put it under an upcoming header, old one for reference)

@Justin99x
Copy link
Contributor Author

I force pushed a change that's hopefully a clean update without submodule changes.

@apple1417 apple1417 merged commit 9cd681d into bl-sdk:master Jul 12, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants